<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:forgeview="http://jboss.org/forge/view"
	template="/resources/templates/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="id" value="#{hrEmpPositionBean.id}"/>
		<f:event type="preRenderView" listener="#{hrEmpPositionBean.retrieve}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="View Hr Emp Position"/>

	<ui:define name="header">
		Hr Emp Position
	</ui:define>

	<ui:define name="subheader">
		View existing Hr Emp Position
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:panelGrid columnClasses="label,component,required" columns="3">
			<h:outputLabel for="hrEmpPositionBeanHrEmpPositionEmpPosDescr" value="Emp Pos Descr:"/>
			<h:outputText id="hrEmpPositionBeanHrEmpPositionEmpPosDescr" value="#{hrEmpPositionBean.hrEmpPosition.empPosDescr}"/>
			<h:outputText/>
			<h:outputLabel for="hrEmpPositionBeanHrEmpPositionHrEmps" value="Hr Emps:"/>
			<h:dataTable id="hrEmpPositionBeanHrEmpPositionHrEmps" styleClass="data-table" value="#{forgeview:asList(hrEmpPositionBean.hrEmpPosition.hrEmps)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Emp Code"/>
					</f:facet>
					<h:link outcome="/form/hrEmp/view">
						<f:param name="id" value="#{_item.empNo}"/>
						<h:outputText id="itemEmpCode" value="#{_item.empCode}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Name Title No"/>
					</f:facet>
					<h:link outcome="/form/hrEmp/view">
						<f:param name="id" value="#{_item.empNo}"/>
						<h:outputText id="itemNameTitleNo" value="#{_item.nameTitleNo}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Emp First Name"/>
					</f:facet>
					<h:link outcome="/form/hrEmp/view">
						<f:param name="id" value="#{_item.empNo}"/>
						<h:outputText id="itemEmpFirstName" value="#{_item.empFirstName}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Emp Last Name"/>
					</f:facet>
					<h:link outcome="/form/hrEmp/view">
						<f:param name="id" value="#{_item.empNo}"/>
						<h:outputText id="itemEmpLastName" value="#{_item.empLastName}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Emp Org No"/>
					</f:facet>
					<h:link outcome="/form/hrEmp/view">
						<f:param name="id" value="#{_item.empNo}"/>
						<h:outputText id="itemEmpOrgNo" value="#{_item.empOrgNo}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
		</h:panelGrid>

		<div class="buttons">
			<h:link value="View All" outcome="search" styleClass="btn btn-primary"/> 
			<h:link value="Edit" outcome="create" includeViewParams="true" styleClass="btn btn-primary"/>
			<h:link value="Create New" outcome="create" styleClass="btn btn-primary"/>
		</div>
	</ui:define>

</ui:composition>